.vmListContainer {
  padding: 20px;
  background-color: #f4f4f4;
}

.title {
  color: #333;
  font-size: 24px;
}

.vmList {
  list-style-type: none;
  padding: 0;
}

.vmItem {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.iconContainer {
  float: left;
  margin: 5px 5px 5px 5px;
}

.icons {
  display: flex;
}
.statusIcon {
  color: #666;
}

.graphicsButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #666;
}

.graphicsButton:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.graphicsButton:hover:not(:disabled) {
  color: #007bff;
}

.vmName {
  font-size: 18px;
  color: #007bff;
}

.vmStatus {
  margin: 5px 0;
  color: #666;
}

.diskInfo {
  margin: 5px 0 5px 20px;
  color: #666;
}

.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 0.6 透明度 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modalContent {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1001;
}

.closeButton {
  padding: 8px 16px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.graphicsItem {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.graphicsItem:hover:not(.disabled) {
  background-color: #f5f5f5;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.iconContainer.disabled {
  color: #ccc;
}

.disabledText {
  color: #999;
}

/* 新增控制栏样式 */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sortButtons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.sortButtons button {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: all 0.2s ease;
}

.sortTable {
  width: 100%;
  table-layout: fixed;
}

.sortCell {
  width: 33.33%; /* 将表格平均分为三列 */
  min-width: 100px; /* 设置最小宽度 */
  padding: 0 5px;
  box-sizing: border-box; /* 确保 padding 包含在宽度内 */
}

.sortCell button {
  width: 100%; /* 让按钮填满整个单元格 */
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏超出部分 */
  text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.arrow {
  display: inline-block;
  width: 1em;
  text-align: center;
}

.sortTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0; /* 移除上下边距 */
}

.sortTable td {
  text-align: center;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0; /* 移除单元格内边距 */
}

.sortTable button {
  width: 100%;
  height: 100%; /* 使按钮填满整个单元格 */
  padding: 0; /* 移除按钮内边距 */
  border: none;
  background: none;
  cursor: pointer;
  color: #333;
  font-size: 14px;
}

.sortTable button.active {
  color: #3a3a3a;
  border-radius: 4px;
}

.sortButtons button.active {
  color: rgb(24, 24, 24);
}

/* 移除 td:hover 和 button:hover 效果 */
.sortTable td:hover {
  background-color: inherit; /* 取消悬停高亮 */
  box-shadow: none; /* 移除阴影 */
}

.sortTable button:hover {
  color: inherit; /* 取消悬停颜色变化 */
}

.sortTable button:hover {
  color: #1890ff;
}

.sortButtons button:hover {
  background-color: #e9e9e9;
}

.sortButtons button.active {
  background-color: #1890ff;
  color: white;
  border-color: #1890ff;
}

.searchContainer {
  margin-bottom: 1px;
  margin-top: 0px;
  border: 1px solid #7e7e7e69;
  padding: 5px 5px 5px 5px;
}

.searchInput {
  width: 242px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.searchInput:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 加载状态样式 */
.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.loadingSpinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.emptyState {
  text-align: center;
  padding: 20px;
  color: #666;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkboxGroupBorder {
  width: 100%; /* 新增样式，使宽度铺满父容器 */
  border: 1px solid #ccc; /* 边框宽度、样式和颜色 */
  border-radius: 4px; /* 边框圆角 */
  padding: 10px; /* 内边距 */
}